package com.handsome.外观模式;

/**
 * @author niechun
 * @date 2023/3/2 19:43
 */
public class Player {

    private Player(){

    }
    private static class Singleton{
        private final static Player player=new Player();
    }

    public static Player getInstance(){
        return Singleton.player;
    }


    public void on(){
        System.out.println(" DVD on");
    }

    public void off(){
        System.out.println(" DVD off");
    }

    public void play(){
        System.out.println(" DVD play");
    }

}
